home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / timepilot.swf / scripts / frame_31 / PlaceObject2_114_9 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2007-03-13  |  730 b   |  32 lines

  1. onClipEvent(enterFrame){
  2.    if(Start == true && bonusno <= 5)
  3.    {
  4.       this.gotoAndStop(2);
  5.       _X = _X + (xspeed - Math.sin(_root.Ship.angle * 0.017453292519943295) * 3);
  6.       _Y = _Y + (yspeed + Math.cos(_root.Ship.angle * 0.017453292519943295) * 3);
  7.       if(this.hitTest(_root.Ship) && _root.Ship.Dead == false)
  8.       {
  9.          _root.Score += 1000 * bonusno;
  10.          this.gotoAndPlay(3);
  11.          this.bonuscount.gotoAndStop(bonusno);
  12.          Start = false;
  13.       }
  14.       if(_X < -20)
  15.       {
  16.          _X = 470;
  17.       }
  18.       if(_X > 470)
  19.       {
  20.          _X = -20;
  21.       }
  22.       if(_Y < 20)
  23.       {
  24.          _Y = 530;
  25.       }
  26.       if(_Y > 530)
  27.       {
  28.          _Y = 20;
  29.       }
  30.    }
  31. }
  32.